package org.boge.sharpdoc.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.boge.sharpdoc.bean.Customer;

import java.util.List;

@Mapper
public interface CustomerDao {
    public Boolean findWhetherExist(Long phone);

    public Integer addCustomer(Customer customer);

    public Long findOfLogin(Customer customer);

    public Customer findByPhone(Long phone);

    public Integer updateInfo(Customer customer);

    public Integer updateAvatar(Customer customer);

    public Integer updatePassword(Customer customer);

    public Integer updateEmail(Customer customer);

    public Integer findCount();

    public Integer updateIntegral(@Param("phone") Long phone, @Param("integral") Integer integral);

    public List<Customer> findAll();

    public Integer updateStatus(@Param("phone") Long phone, @Param("status") String status);
}